<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/pages/common.jsp" %>
<%@ include file="/common/pages/taglibs.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="ex" uri="/ex"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=basePath%>/common/js/jquery-ui/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="<%=basePath%>/common/js/jquery-ui/jquery.ui.js"></script>
<script type="text/javascript" src="<%=basePath%>iccard/merchant/js/merchant_info.js"></script>
<title>Merchant list</title>
<script type="text/javascript">

</script>
</head>
<body>
	<input value="<%=basePath%>" id="contextPath" type="hidden"/>
	<div id="merchantset" class="easyui-panel" nofit=true
		style="padding: 2px; border: 1px solid #ddd;" title="商家详情"
		data-options="iconCls:'icon-bt',collapsible:true">
		<table width="90%" align="left">
			<tr>
				<td>商家名称：</td>
				<td>
					<input value="${merchant.merchantName}" disabled="disabled" size=" 50"/>
				</td>
			</tr>
			<tr>
				<td>商户地址：</td>
				<td>
					<input value="${merchant.merchantAddr}" disabled="disabled" size=" 50" />
				</td>
			</tr>
			<tr>
				<td>商户编码：</td>
				<td><input value="${merchant.merchantEncode}" disabled="disabled" /></td>
				<td>商户编号：</td>
				<td><input value="${merchant.merchantCode}" disabled="disabled" /></td>
			</tr>
			<tr>
				<td>开户名：</td>
				<td><input value="${merchant.accountName}" disabled="disabled" /></td>
				<td>开户账号：</td>
				<td><input value="${merchant.accountCode}" disabled="disabled" /></td>
			</tr>
			<tr>
				<td>开户行：</td>
				<td><input value="${merchant.bank}" disabled="disabled" /></td>
				<td>责任人：</td>
				<td><input value="${merchant.corporation}" disabled="disabled" /></td>
			</tr>
			<tr>
				<td>充值卡结算折扣：</td>
				<td><input value="${merchant.rechargeableCardDiscountRate}" disabled="disabled" />折</td>
				<td>联系电话：</td>
				<td><input value="${merchant.telphone}" disabled="disabled" /></td>
			</tr>
			<tr>
				<td>适用转账模板：</td>
					<c:if test="${merchant.accountTemplate eq '0'}">
						<td><input value="公对私模板" disabled="disabled" /></td>
					</c:if>
					<c:if test="${merchant.accountTemplate eq '1'}">
						<td><input value="公对公模板" disabled="disabled" /></td>
					</c:if>
				<td>转账摘要：</td>
					<c:if test="${merchant.accountDigest eq '0'}">
						<td><input value="划款" disabled="disabled" /></td>
					</c:if>
					<c:if test="${merchant.accountDigest eq '1'}">
						<td><input value="来往款" disabled="disabled" /></td>
					</c:if>
			</tr>
			<c:if test="${merchant.accountTemplate	 eq '1'}">
					<td>模式：</td>
				<c:if test="${merchant.accountModel eq '1'}">
					<td><input value="行内公对公业务" disabled="disabled" /></td>
				</c:if>
				<c:if test="${merchant.accountModel eq '0'}">
					<td><input value="其他" disabled="disabled" /></td>
				</c:if>
			</c:if>
			<tr>
				<td>商家业务类型：</td>
					<td>
						
							<c:if test="${merchant.merchantType eq '0'}">
								<input value='餐饮' disabled="disabled" />
							</c:if>
							<c:if test="${merchant.merchantType eq '1'}">
								<input value='住宿' disabled="disabled" />
							</c:if>
							<c:if test="${merchant.merchantType eq '2'}">
								<input value='食品' disabled="disabled" />
							</c:if>
							<c:if test="${merchant.merchantType eq '3'}">
								<input value='服装' disabled="disabled" />
							</c:if>
							<c:if test="${merchant.merchantType eq '4'}">
								<input value='纪念品' disabled="disabled" />
							</c:if>
							<c:if test="${merchant.merchantType eq '5'}">
								<input value='酒吧' disabled="disabled" />
							</c:if>
							<c:if test="${merchant.merchantType eq '6'}">
								<input value='咖啡店' disabled="disabled" />
							</c:if>
							<c:if test="${merchant.merchantType eq '7'}">
								<input value='茶楼' disabled="disabled" />
							</c:if>
							<c:if test="${merchant.merchantType eq '8'}">
								<input value='其他' disabled="disabled" />
							</c:if>
						
					</td>
			</tr>
			
		</table>
	</div>

	<div id="nrqx" class="easyui-panel" nofit=true
		data-options="title:'POS机编码',iconCls:'icon-bt',collapsible:true,tools:'#tt'">
			<c:forEach items="${merchant.poslists}" var="list"  varStatus="status"> 
			<div class="easyui-panel">
				<table width="90%" align="left">
					<tr>
						<td>POS机编码<pp>${status.index+1}</pp>：</td>
						<td>${list.posCode}</td>
					</tr>
				</table>
				</div>
			</c:forEach>
	</div>

<div id="nrqx" class="easyui-panel" nofit=true
	data-options="title:'审核信息',iconCls:'icon-bt',collapsible:true,tools:'#tt'">
		<table width="90%" align="left">
			<tr>
				<td>审核结果：</td>
				<c:if test="${merchant.merchantCheckStatus eq '0'}">
					<td>审核未通过 </td>
				</c:if>
				<c:if test="${merchant.merchantCheckStatus eq '1'}">
					<td>审核已通过</td>
				</c:if>
				<c:if test="${merchant.merchantCheckStatus eq '2'}">
					<td>待审核</td>
				</c:if>
				<td width="15%"></td>
				<td width="35%"></td>
			</tr>
			<tr>
				<td>理由：</td>
				<td>${checkReason.checkContent}</td>
				<td width="15%"></td>
				<td width="35%"></td>
			</tr>
			<tr>
				<td width="15%">审核人：</td>
				<td width="35%">${checkReason.userName}</td>
				<td width="15%"></td>
				<td width="35%"></td>
			</tr>
			<tr>
				<td width="15%">审核日期：</td>
				<td width="35%"><fmt:formatDate value="${checkReason.checkTime}" pattern="yyyy-MM-dd"/></td>
				<td></td>
				<td></td>
			</tr>
		</table>
</div>
<div id="btn_div"
	style="text-align:center;margin-top:10px">
			<a href="#" class="easyui-linkbutton" onclick="loadExpensiveRecord(this,'${merchant.merchantEncode}','${merchant.merchantName}')">查看刷卡记录</a>
			<a id="saveb" href="#" class="easyui-linkbutton" onclick="closeBack();">返回</a>
</div>
</body>
</html>